package com.erp.ae.service;


import com.alibaba.fastjson.JSONObject;
import com.ruoyi.ae.api.domain.AeStoreOrder;
import com.ruoyi.ae.api.domain.AeStoreOrderReceiptAddress;
import com.ruoyi.common.core.domain.R;

import java.util.List;
import java.util.Map;

/**
 * 商户订单Service接口
 *
 * @author erp
 * @date 2023-03-09
 */
public interface IAeStoreOrderService {


    R<Object> findOrderBaseInfo(String accessToken, String orderId);

    R<Object> findOrderReceiptInfo(String accessToken, Long orderId);

    R<Object> findOrderFeeRateAndCodeInfo(String accessToken, Long orderId);

    R<Object> updateOrderAmount(String accessToken, Long orderId);

    AeStoreOrderReceiptAddress tradeSellerOrderDecrypt(AeStoreOrderReceiptAddress aeStoreOrderReceiptAddress, String accessToken);

    Map<String, Object> saveAeNewOrderInfo(AeStoreOrder order, JSONObject orderDetails, String accessToken);

    Map<String, Object> saveAeIncrementalOrderInfo(AeStoreOrder order, JSONObject orderDetails, String accessToken);

    /**
     * @Description: 根据店铺cn码和订单时间，查询店铺列表
     * @Author: j.zh
     * @Date: 2024/5/9
     * @param storeUserName
     * @param createDateStart
     * @return java.util.List<com.ruoyi.ae.api.domain.AeStoreOrder>
     * @Version: 4.0.0
    **/
    List<AeStoreOrder> getListByStoreUserName(String storeUserName, String createDateStart, String createDateEnd);
}
